package com.zoffy.catdiarybackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zoffy.catdiarybackend.model.entity.Friendship;
import com.zoffy.catdiarybackend.model.vo.FriendVo;

import java.util.List;

/**
* @author 86170
* @description 针对表【friendship】的数据库操作Mapper
* @createDate 2024-07-16 17:54:14
* @Entity com.zoffy.catdiarybackend.model.entity.Friendship
*/
public interface FriendshipMapper extends BaseMapper<Friendship> {
    int addFriendIfNotExist(long user1Id,long user2Id);
    int addFriendIfExist(long user1Id,long user2Id);
    List<FriendVo> selectFriends(long userId);
    List<FriendVo> selectFriendAddRequest(long userId);
    List<FriendVo> selectMyFriendAddRequest(long userId);
    boolean disagreeFriendAddRequest(long user1Id,long user2Id);
}




